@import "~vscode-codicons/dist/codicon.css";
@import '~@logicflow/core/dist/style/index.css';

@header: 50px;
@handle: 50px;

/*=====cover begin=====*/
.ant-input:focus {
  box-shadow: none;
}
.lf-tool-overlay {
  display: none;
}
/*=====cover end=====*/

.kettle_flow {
  height: 100vh;
  position: relative;

  .header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: @header;
    padding: 0 20px;
    line-height: @header;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ebedf0;
    z-index: 99;

    .title {
      height: 100%;
      width: 250px;

      span {
        display: inline-block;
        max-width: 200px;
        font-size: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
        white-space: nowrap;
      }

      input {
        width: 200px;
      }

      i {
        height: 50px;
        line-height: 55px;
        margin-left: 15px;
        vertical-align: top;
      }
    }

    .space {
      flex-grow: 1;
    }
  }

  .node-panel {
    position: fixed;
    top: @header;
    left: 0;
    height: 100%;
    overflow: hidden;
    z-index: 99;
    background: #fff;
    padding-left: 5px;
    border-right: 1px solid #e8e8e8;
    transition: all .3s;

    .handle {
      top: @header;
      left: 0;
      height: @handle;
      width: 100%;
      line-height: @handle;
      padding: 0 10px;

      .ant-input-search {
        width: 180px;
      }

      i {
        margin-left: 17px;
        font-size: 16px;
      }
    }

    .__vuescroll {
      height: calc(100vh - @header - @handle) !important;

      .__bar-is-vertical {
        border-radius: unset !important;
      }

      .node-tree {
        margin: 0;
        padding: 0;
        font-size: 14px;
        list-style: none;
        user-select: none;

        li {
          margin: 0;
          padding: 5px 0;
          outline: 0;
          list-style: none;
          white-space: nowrap;
        }

        .switcher {
          display: inline-block;
          width: 24px;
          height: 24px;
          margin: 0;
          line-height: 24px;
          text-align: center;
          vertical-align: top;
          border: 0;
          outline: none;

          i {
            display: inline-block;
            font-size: 12px;
            font-weight: 800;
          }
        }

        .content-wrapper {
          display: inline-block;
          height: 24px;
          margin: 0;
          padding: 0;
          line-height: 24px;
          text-decoration: none;
          vertical-align: top;
          border-radius: 2px;
          transition: all .3s;

          .icon {
            display: inline-block;
            width: 24px;
            height: 24px;
            margin: 0;
            padding: 0;
            line-height: 24px;
            text-align: center;
            vertical-align: top;
            border: 0;
            outline: none;

            i {
              font-size: 24px;
            }
          }

          .title {
            padding: 0 5px;
          }
        }

        .node-child-tree {
          & > li:first-child {
            padding-top: 10px;
          }
        }
      }
    }
  }

  .collapsed {
    position: absolute;
    bottom: 0;
    z-index: 2;
    background-color: #fff;
    padding: 5px;
    text-align: center;
    border-right: 1px solid #e8e8e8;
    cursor: pointer;

    i {
      font-size: 18px;
      cursor: pointer;
    }
  }

  #flow_view {
    width: 100%;
    height: 100%;
    outline: none;
  }
}
